<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8" />
  <meta http-equiv="X-UA-Compatible" ;content="IE=edge, chrome=1" />
  <title>诊所</title>
  <link rel="icon" href="/favicon.ico" type="image/x-icon" />
  <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
  <!-- <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> -->
  </script>
</head>
<style>
</style>

<body>
  <div id="app"></div>
</body>

<script type="text/javascript">

  function BrowserType() {
    var userAgent = navigator.userAgent;
    var isOpera = userAgent.indexOf("Opera") > -1;
    var isIE =
      userAgent.indexOf("compatible") > -1 &&
      userAgent.indexOf("MSIE") > -1 &&
      !isOpera;
    var isEdge =
      userAgent.indexOf("Windows NT 6.1; Trident/7.0;") > -1 && !isIE;
    var isFF = userAgent.indexOf("Firefox") > -1;
    var isSafari =
      userAgent.indexOf("Safari") > -1 && userAgent.indexOf("Chrome") == -1;
    var isChrome =
      userAgent.indexOf("Chrome") > -1 && userAgent.indexOf("Safari") > -1;
    var isQQ =
      userAgent.indexOf("Chrome") > -1 && userAgent.indexOf("QQBrowser") > -1;

    if (isIE) {
      var reIE = new RegExp("MSIE (\\d+\\.\\d+);");
      reIE.test(userAgent);
      var fIEVersion = parseFloat(RegExp["$1"]);
      if (fIEVersion == 7) {
        return "IE7";
      } else if (fIEVersion == 8) {
        return "IE8";
      } else if (fIEVersion == 9) {
        return "IE9";
      } else if (fIEVersion == 10) {
        return "IE10";
      } else if (fIEVersion == 11) {
        return "IE11";
      } else {
        return "0";
      }
    }
    if (isFF) {
      return "FF";
    }
    if (isOpera) {
      return "Opera";
    }
    if (isSafari) {
      return "Safari";
    }
    if (isChrome) {
      return "Chrome";
    }
    if (isEdge) {
      return "Edge";
    }
  }

  if (
    BrowserType() == "Chrome" ||
    BrowserType() == "Safari"
  ) {
  } else {
    alert(
      "远程问诊视频只支持，QQ浏览器（QQ浏览器请切换极速模式），谷歌浏览器，Safari浏览器"
    );
  }
  document.oncontextmenu = new Function("event.returnValue=false;");
</script>
<!-- <script src="./static/js/trtc.js"></script> -->
<script src="/static/js/trtc.js"></script>

</html>